package com.sp.service;
import java.util.List;

/**
 * @author ddxing
 * @time 2017-7-26
 */
import org.springframework.data.domain.Page;
import org.springframework.data.repository.query.Param;

import com.lnsf.entity.Category;
import com.lnsf.entity.Goods;
import com.lnsf.entity.User;

public interface IGoodsService {
	
	public void deleteGoods(int id);
	
	public void updateGood(Goods good);
	
	public Goods findOne(Integer id);
	
	public Goods get(Integer id);
	
	public Goods save(Goods goods);
	
	Page<Goods> getPage(int pageNo, int pageSize);
	
	public List<Goods> findGoodsByUser(User user);
	
	List <Goods> findBySnameLike(@Param(value = "name")String name);
	
	public List<Goods> findGoodsByMaxTime();
	
	public List<Goods> findGoodsByCategoryId(Category category);

	//根据商品名字进行查找，模糊查找
	public List<Goods> getGoodsByCondition(String name,int id);

	

}
